package com.ss.android.wenda.answer.list;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.ss.android.article.base.feature.detail2.widget.DetailTitleBar;
import com.ss.android.common.util.ImmersedStatusBarHelper.ImmersedStatusBarConfig;
import com.ss.android.newmedia.activity.BaseActivity;

public class FoldAnswerListActivity extends BaseActivity {
    DetailTitleBar a;

    public FoldAnswerListActivity() {

    }

    public static void a(Context arg2, String arg3, String arg4, String arg5) {
        if(arg2 != null && ! android.support.design.a.isTextEmpty(arg3)) {
            Intent v0 = new Intent(arg2, FoldAnswerListActivity.class);
            v0.putExtra("qid", arg3);
            if(! android.support.design.a.isTextEmpty(arg4)) {
                v0.putExtra("gd_ext_json", arg4);
            }

            if(! android.support.design.a.isTextEmpty(arg5)) {
                v0.putExtra("api_param", arg5);
            }

            arg2.startActivity(v0);
        }
    }

    public ImmersedStatusBarConfig getImmersedStatusBarConfig() {
        return new ImmersedStatusBarConfig().setStatusBarColor(com.ss.android.article.browser.R.color.status_bar_color_detail);
    }

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(com.ss.android.article.browser.R.layout.answer_list_activity);
        this.a = (DetailTitleBar) this.findViewById(com.ss.android.article.browser.R.id.title_bar);
        this.getSupportFragmentManager().beginTransaction().replace(com.ss.android.article.browser.R.id.fragment_container, new k()).commitAllowingStateLoss();
    }

    public void onResume() {
        super.onResume();
        this.a.g();
    }
}

